---
id: "string-literal"
keywords: ["string"]
name: '""'
summary: "This is the `string` literal syntax."
category: "languageconstructs"
---

A `string` literal is composed of two **double** quotes. Single quotes are reserved for the `char` type.

### Example

<CodeTab labels={["ReScript", "JS Output"]}>

```res
let myString = "Single line " ++ "string!"
let myMultiLineString = "Multi
 line
 string!"
```

```js
var myString = "Single line string!";

var myMultiLineString = "Multi\n line\n string!";
```

</CodeTab>

### References

- [Strings](../docs/manual/primitive-types.mdx#string)
- [Characters](../docs/manual/primitive-types.mdx#char)
